/* vue */
import { defineComponent } from "vue";
/* mixin */
import VersionControlBaseMixin from '@src/mixins/versionControlMixin/base';
/* version warehouse */
import {
  isShowWarehouseModule
} from '@shb-lib/version'

export default defineComponent({
  name: "version-control-warehouse-mixin",
  mixins: [VersionControlBaseMixin],
  computed: {
    /**
     * @description 云仓 模块 版本控制
    */
    warehouseVersionControl(): Record<string, boolean> {
      return {
        isShowWarehouseModule: isShowWarehouseModule(this._versionControlMap),
      }
    },
    _isShowWarehouseModule(): boolean {
      return this.warehouseVersionControl.isShowWarehouseModule
    }
  }
})
